﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AesonIntegrationTestModul.Views;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;

namespace AesonIntegrationTestModul
{
    public class ModulInit : IModule
    {
        IUnityContainer Container { get; set; }
        IRegionManager RegionManager { get; set; }

        public ModulInit()
        {
                
        }

        public ModulInit(IUnityContainer ct, IRegionManager regionmanager)
        {
            Container = ct;
            RegionManager = regionmanager;
        }
      
        public void Initialize()
        {
           // this.Container.RegisterType<IntegrationTestView>();

             this.RegionManager.RegisterViewWithRegion("MainRegion", typeof(IntegrationTestView));
          
        }
    }
}
